package com.huawang.mdesign.model.service.util.reqif;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamOmitField;
import lombok.Getter;
import lombok.Setter;

/**
 * Used to provide an alternative, tool-specific identification.
 *
 * @author xdl
 * @since 2023-04-04
 */
@Getter
@Setter
@XStreamAlias(ReqIFConstants.ALTERNATIVE_ID)
public class AlternativeID {

    /**
     * An optional alternative identifier, which may be a requirements management tool identifier or ReqIF tool identifier.
     */
    @XStreamAlias(ReqIFConstants.IDENTIFIER)
    @XStreamAsAttribute
    private String identifier;

    /**
     * Back linkage to the owning Identifiable.
     */
    @XStreamOmitField
    private Identifiable ident;
}
